<template>
  <div>
    <div class="page-header"><h2>Vue Router Demo</h2></div>
    <button @click="back">后退</button>
    <button @click="forward">前进</button>
  </div>
</template>

<script lang="ts">
export default {
  name: "Banner",
  methods: {
    back() {
      // this.$router.back();
      this.$router.go(-1);
    },
    forward() {
      this.$router.forward();
    },
  },
};
</script>

<style></style>
